<%option explicit%>
<!--#include file="conn.asp"-->
<!--#include file="func.asp"-->
<%
call nocache()
dim act,id
table=request.QueryString("table")
act=request.QueryString("act")
id=request.queryString("id")
if table="" or act="" or id="" then
call errorend()
end if
table=checkint(table)
act=checkint(act)
id=checkint(id)

table=checktable(table)
preColumn=left(table,3)
sql="select "&preColumn&"_check from ["&table&"] where "&preColumn&"_id="&id
rs.open sql,conn,1,3
if act=1 then
	rs(0)=true
elseif act=0 then
	rs(0)=false
end if
	rs.update
call connClose()
%>